package log4j;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Test {
    public static void main(String[] args) {
        Logger logger= LogManager.getLogger(Test.class.getName());
        try {
            if (1/0==0){

            }
        }catch (Exception e){
            logger.error("exception",e);
        }


    }
}
